package com.Design.AbstractFacPattern;

import com.Design.AbstractFacPattern.Color.Green;
import com.Design.AbstractFacPattern.Color.Red;
import com.Design.AbstractFacPattern.Impl.Color;
import com.Design.AbstractFacPattern.Impl.Shape;

public class AbstractColor extends Factory {
    @Override
    public Color getColor(String color) {
        if(color==null){
            return null;
        }else if (color.equals("red")){
            return new Red();
        }else if (color.equals("green")){
            return new Green();
        }
        return null;
    }

    @Override
    public Shape getShape(String shape) {
        return null;
    }
}
